home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Games of Daze
/
Infomagic - Games of Daze (Summer 1995) (Disc 1 of 2).iso
/
x2ftp
/
msdos
/
libs
/
pdcurs21
/
portable
/
initcolo.c
< prev
next >
Wrap
C/C++ Source or Header
|
1993-06-18
|
2KB
|
57 lines
#define CURSES_LIBRARY 1
#include <curses.h>
#ifdef PDCDEBUG
char *rcsid_initcolo = "$Header: C:\CURSES\portable\RCS\initcolo.c 2.1 1993/06/18 20:20:07 MH Rel MH $";
#endif
/*man-start*********************************************************************
init_color() - Change the definition of a color.
PDCurses Description:
This routine is used to change the definition of a color.
The routine takes four arguments: the number of the color to be
redefined, and the new values of the red, green and blue
components of the color.
The value of color must be between 0 and COLORS-1.
The values of red, green and blue must each fall between 0 and
1000;
***** This function doesn't do anything yet *****
PDCurses Return Value:
This function returns OK if the color change was possible or
ERR on error.
PDCurses Errors:
N/A
Portability:
PDCurses int init_color( int color, short red, short green, short blue);
SYS V curses int init_color( int color, short red, short green, short blue);
**man-end**********************************************************************/
int init_color(int color, short red, short green, short blue)
{
extern int COLORS;
#ifdef PDCDEBUG
if (trace_on) PDC_debug("init_color() - called: color %d red %d green %d blue %d\n",color,red,green,blue);
#endif
if (color >= COLORS -1 || color < 1)
return(ERR);
/*
* This function doesn't do anything yet...
*/
return(ERR);
}